package com.lagou.job;

/**
 * 作业1: 定义项目经理类Manager
 */
public class Manager {
    //定义私有成员变量
    private String name;
    private int id;
    private double salary;
    private double bonus;

    //定义无参构造方法
    public Manager() {
    }

    //定义有参构造方法
    public Manager(String name, int id, double salary, double bonus) {
        setName(name);
        setId(id);
        setSalary(salary);
        setBonus(bonus);
    }

    //定义getter,setter方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    //Manager自定义方法
    public void work(){
        System.out.println("工号为" + id + "基本工资为" + salary + "奖金为" + bonus +"的项目经理" + name + "正在努力的做着管理工作,");
        System.out.println("分配任务,检查员工提交上来的代码.....");
    }
}
